package cn.xiezonjie.action;

import cn.xiezonjie.dao.MenuDao;
import cn.xiezonjie.model.Menu;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class MenuAddAction extends ActionSupport{
	private Menu menu;
	
		
	public Menu getMenu() {
		return menu;
	}


	public void setMenu(Menu menu) {
		this.menu = menu;
	}


	public String execute() throws Exception{
        
		System.out.println(menu);
		MenuDao dao=new MenuDao();
		dao.Add(menu);
		return "OK";
    }
	
	
	

}
